import 'package:citiesocial/_include.dart';

class NotLogin extends StatelessWidget {
  final String hint;
  NotLogin([this.hint = '登录会员，快速掌控订单状态']);

  @override
  Widget build(BuildContext context) => Column(
        mainAxisSize: MainAxisSize.min,
        // mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: <Widget>[
          Image.asset(
            'imgs/js_cells_img_account.png',
            height: 210.0,
            width: 180.0,
            fit: BoxFit.scaleDown,
          ),
          Container(
            child: Text(
              '$hint',
              style: TextStyle(fontSize: 18.0),
            ),
            margin: EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
          ),
          GestureDetector(
            child: Container(
              width: 240.0,
              height: 45.0,
              decoration: ShapeDecoration(
                color: Configs.main,
                shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(5.0)),
              ),
              child: Center(
                child: Text(
                  '登录 cicci',
                  style: TextStyle(color: Colors.white, fontSize: 16.0),
                ),
              ),
            ),
            onTap: () {
              Navigator.pushNamed(context, '/login');
            },
          ),
          GestureDetector(
            child: Container(
              margin: EdgeInsets.only(top: 10.0),
              width: 240.0,
              height: 45.0,
              decoration: BoxDecoration(
                  color: Colors.white,
                  border: Border.all(color: Configs.main, width: 1.0),
                  borderRadius: BorderRadius.circular(5.0)),
              child: Center(
                child: Text(
                  '立即注册',
                  style: TextStyle(color: Configs.main, fontSize: 16.0),
                ),
              ),
            ),
            onTap: () {
              Navigator.pushNamed(context, '/register');
            },
          ),
        ],
      );
}
